package com.company.store;

import com.company.pojo.Pizza;
import com.company.pojo.concrete.characteristics.NYCheesePizza;
import com.company.pojo.concrete.characteristics.NYClamPizza;
import com.company.pojo.concrete.characteristics.NYVeggiePizza;

/**纽约分店*/
public class NYPizzaStore extends PizzaStore {

    @Override
    public Pizza createPizza(String type) {
        Pizza pizza = null;

        if("cheese".equals(type)) {
            pizza = new NYCheesePizza();
        } else if("clam".equals(type)) {
            pizza = new NYClamPizza();
        } else if("veggie".equals(type)) {
            pizza = new NYVeggiePizza();
        }

        return pizza;
    }

}